POV-Ray : Newsgroups : povray.advanced-users : File I/O handling... : Re: File I/O handling... Server Time
29 Jul 2024 10:19:36 EDT (-0400)
  Re: File I/O handling...  
From: Simon Adameit
Date: 4 Aug 2002 10:26:59
Message: <3d4d39b3@news.povray.org>
"Tim Nikias" wrote:
> So, how do I check if an opened file is actually empty?
>

Read it. If the file_handle is undefed after reading the first time from
this file than it's an empty file.
But somehow the data_identifier is defined but doesn't contain any data.
I think this is what is causing the crash when trying to write it.

Simon


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.